.SILENT:

Verbosity=Minimal
Configuration=Debug

!IF EXIST($(WINDIR)\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe) && "$(VS100COMNTOOLS)" != ""
VS_VER=vs2010
!ELSE
!IF EXIST($(WINDIR)\Microsoft.NET\Framework\v3.5\MSBuild.exe) && "$(VS90COMNTOOLS)" != ""
VS_VER=vs2008
!ELSE
!ERROR You Fail.  Unable to locate MSBuild.exe and Visual Studio 9 or 10
!ENDIF
!ENDIF

default: $(VS_VER)

all: vs2008 vs2010

vs2010: always
	$(WINDIR)\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo "$(MAKEDIR)\Samples-vs2010.sln" \
		/target:Rebuild /p:Configuration=$(Configuration) /p:Platform="Any CPU" /verbosity:$(Verbosity)
	$(WINDIR)\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe /nologo "$(MAKEDIR)\Samples-vs2010.sln" \
		/target:Rebuild /p:Configuration=$(Configuration) /p:Platform="Win32" /verbosity:$(Verbosity)

vs2008: always
	$(WINDIR)\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo "$(MAKEDIR)\Samples-vs2008.sln" \
		/target:Rebuild /p:Configuration=$(Configuration) /p:Platform="Any CPU" /verbosity:$(Verbosity)
	$(WINDIR)\Microsoft.NET\Framework\v3.5\MSBuild.exe /nologo "$(MAKEDIR)\Samples-vs2008.sln" \
		/target:Rebuild /p:Configuration=$(Configuration) /p:Platform="Win32" /verbosity:$(Verbosity)

always:


